package com.lyf.boot.core.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author Luyufan
 * @date 2023/7/6 10:31
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class LoginVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 8764803704125524839L;

    /**
     * 授权令牌
     */
    //@JsonProperty("access_token")
    private String accessToken;

    /**
     * 刷新令牌
     */
    //@JsonProperty("refresh_token")
    private String refreshToken;

    /**
     * 授权令牌 access_token 的有效期
     */
    //@JsonProperty("expire_in")
    private Long expireIn;

    /**
     * 刷新令牌 refresh_token 的有效期
     */
    //@JsonProperty("refresh_expire_in")
    private Long refreshExpireIn;

    /**
     * 应用id
     */
    //@JsonProperty("client_code")
    private String clientCode;

    /**
     * 令牌权限
     */
    private String scope;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户 openid
     */
    private String openid;

}
